import { Flex } from "antd"

interface Dialog {
	title: string,
	msg: string,
	open: boolean,
}

interface Props {
	dialog: Dialog
}

export function useDialog(title: string, msg: string): Dialog {
	return {
		open: true,
		msg,
		title
	}
}

const ProgDialog: React.FC<Props> = ({ dialog }) => {


	return (
		<>
			<Flex vertical={true}>
				<p>{dialog.title}</p>
			</Flex>
		</>
	)
}

export default ProgDialog
